package com.kymatrix.kycarbon.xsmd.kbpm.server.model.enums;


import com.kymatrix.kycarbon.xsmd.common.business.common.BaseBusinessEnum;

import static com.kymatrix.kycarbon.xsmd.common.business.common.BaseBusinessEnum.SysConfigGroupName.WF_PROCESS_INSTANCE_STATE;

/**
 * 流程实例状态(10：进行中；20：已完成；30：已撤回；40：强行终止；50：挂起；99：已废弃)
 */
public enum ProcessInstanceStateEnum implements BaseBusinessEnum {
    DOING("10", "进行中"),
    FINISHED("20", "已完成"),
    WITHDRAW("30", "已撤回"),
    INTERRUPT("40", "强行终止"),
    REJECT("45", "已拒绝"),
    PENDING("50", "挂起"),
    ABANDON("99", "已废弃");
    private final String code;

    private final String name;


    ProcessInstanceStateEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getSysConfigGroupName() {
        return WF_PROCESS_INSTANCE_STATE;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
